package com.iona.domain;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class DisciplineTree extends BaseEntity {
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "parent_fk")
	private Discipline parent;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "child_fk")
	private Discipline child;

	public Discipline getParent() {
		return parent;
	}

	public void setParent(Discipline parent) {
		this.parent = parent;
	}

	public Discipline getChild() {
		return child;
	}

	public void setChild(Discipline child) {
		this.child = child;
	}

}
